//
//  WXQViewControllerExtensions.m
//  TestSchool
//
//  Created by wuxiaoquan on 12-11-2.
//  Copyright (c) 2012年 yaoxia. All rights reserved.
//

#import "WXQViewControllerExtensions.h"

@implementation UIViewController(WXQViewControllerExtensions)

-(void)addRoundBound:(UIView *)v
{
    //添加边框
    CALayer *layer = [v layer];
    layer.cornerRadius = 10.0f;
    layer.masksToBounds = YES;
    layer.borderColor = [[UIColor grayColor] CGColor];
    layer.borderWidth = 1.0f;
    //添加四个边阴影
    //    layer.shadowColor = [[UIColor blackColor] CGColor];
    //    layer.shadowOffset = CGSizeMake(0,0);
    //    layer.shadowOpacity = 0.5f;
    //    layer.shadowRadius = 10.0f;
}

@end
